home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
comms
/
other
/
slrn
/
slrn_src
/
src
/
makefile.os2
< prev
next >
Wrap
Makefile
|
1999-05-14
|
10KB
|
206 lines
# Makefile for slrn -*- sh -*-
# OS/2 specific version; assumes you're using EMX 0.9b or later.
# OS/2 specific version; assumes you're using EMX 0.9b or later.
#
# 1997, March 01, bjf: Added all necessary (and probably some unnecessay)
# dependencies to the $(OBJDIR)/*.o targets.
#
#
#---------------------------------------------------------------------------
# This file is divided into five configurable sections. The last section
# is optional: Section 5 deals with setting up slrn to read the server name
# from a file. This is probably unnecessary on OS/2.
#-----------------------------------------------------------------------------
# 1. Choose a C compiler. It must understand prototypes.
#-----------------------------------------------------------------------------
CC = gcc -O2 -Zcrtdll -Zmt -DOS2 -D__os2__#
#CC = gcc -g -Zcrtdll -Zmt -DOS2 -D__os2__#
#-----------------------------------------------------------------------------
# 2. On a few systems, additional libraries are required.
#-----------------------------------------------------------------------------
MISCLIBS = -lsocket -ltermcap -lvideo# OS/2
#-----------------------------------------------------------------------------
# 3. Directory where the slang library, slanglib.a, is located.
# BUILD SLANG FIRST!!!! If you do not have it, get it from the same place
# you picked up slrn. The current home is space.mit.edu:/pub/davis/slang.
#-----------------------------------------------------------------------------
SDIR = ../../slang/src# Location of slang.h
SLIBDIR = $(SDIR)/emxobjs# Location of libslang.a
#-----------------------------------------------------------------------------
# 4. Location where object files are placed.
#-----------------------------------------------------------------------------
OBJDIR = objs#
#-----------------------------------------------------------------------------
# 5. If you want to read the server from a file, uncomment the following
# lines and edit it as appropriate. See INSTALL for more information.
# It is also possible to provide defaults for other variables such as the
# HOSTNAME, etc... by editing the slrnfeat.h file. Again, read INSTALL.
#-----------------------------------------------------------------------------
#NNTPSERVERFILE = -DNNTPSERVER_FILE=\"/usr/local/lib/news/nntp_server\"
#SLRNLIBDIR = -DSLRN_LIB_DIR=\"/usr/local/lib/news\"
#SLRNLIBDIR = -DSLRN_LIB_DIR=\"$(HOME)/lib/slrn\"
#----------------------------------------------------------------------------
# Nothing below here should require changing.
#----------------------------------------------------------------------------
OBJS = $(OBJDIR)/art.o \
$(OBJDIR)/chmap.o \
$(OBJDIR)/editscore.o \
$(OBJDIR)/group.o \
$(OBJDIR)/hash.o \
$(OBJDIR)/help.o \
$(OBJDIR)/interp.o \
$(OBJDIR)/menu.o \
$(OBJDIR)/mime.o \
$(OBJDIR)/misc.o \
$(OBJDIR)/print.o \
$(OBJDIR)/post.o \
$(OBJDIR)/score.o \
$(OBJDIR)/server.o \
$(OBJDIR)/slrn.o \
$(OBJDIR)/sortdate.o \
$(OBJDIR)/startup.o \
$(OBJDIR)/ttymsg.o \
$(OBJDIR)/util.o \
$(OBJDIR)/uudecode.o \
$(OBJDIR)/slrndir.o \
$(OBJDIR)/version.o \
$(OBJDIR)/xover.o
OBJSpull = \
$(OBJDIR)/version.o \
$(OBJDIR)/util.o \
$(OBJDIR)/ttymsg.o \
$(OBJDIR)/slrnpull.o \
$(OBJDIR)/sltcp.o \
$(OBJDIR)/slrndir.o \
$(OBJDIR)/nntplib.o
UUDECODE_OBJS = $(OBJDIR)/util.o $(OBJDIR)/ttymsg.o $(OBJDIR)/slrndir.o
CFLAGS = -I. -I$(SDIR) $(SLRNLIBDIR)
slrn.exe: $(OBJDIR) config.h slangversion $(OBJS)
$(CC) $(OBJS) -o slrn.exe -L$(SLIBDIR) -lslang $(MISCLIBS)
emxbind -s slrn.exe
slrnpull.exe: $(OBJDIR) config.h slangversion $(OBJSpull)
$(CC) $(OBJSpull) -o slrnpull.exe -L$(SLIBDIR) -lslang -lsocket
emxbind -s slrnpull.exe
uudecode: $(OBJDIR)/uudecode1.o $(UUDECODE_OBJS)
$(CC) $(CFLAGS) -o uudecode.exe $(OBJDIR)/uudecode1.o \
$(UUDECODE_OBJS) -L$(SLIBDIR) -lslang
emxbind -s uudecode.exe
all: slrn.exe slrnpull.exe uudecode.exe
$(OBJDIR):
@mkdir $(OBJDIR)
config.h: slrnconf.h
cp slrnconf.h config.h
$(OBJDIR)/art.o: art.c config.h slrnfeat.h jdmacros.h slrn.h group.h server.h \
nntpcodes.h art.h misc.h ttymsg.h post.h startup.h hash.h \
score.h menu.h util.h xover.h chmap.h uudecode.h mime.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/art.o art.c
$(OBJDIR)/chmap.o: chmap.c config.h slrnfeat.h jdmacros.h misc.h ttymsg.h \
util.h chmap.h group.h art.h charmaps.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/chmap.o chmap.c
$(OBJDIR)/editscore.o: editscore.c config.h slrnfeat.h jdmacros.h group.h \
art.h startup.h misc.h ttymsg.h score.h util.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/editscore.o editscore.c
$(OBJDIR)/group.o: group.c config.h slrnfeat.h jdmacros.h slrn.h group.h \
art.h misc.h ttymsg.h post.h server.h nntpcodes.h hash.h \
score.h menu.h util.h startup.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/group.o group.c
$(OBJDIR)/hash.o: hash.c config.h slrnfeat.h jdmacros.h hash.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/hash.o hash.c
$(OBJDIR)/help.o: help.c config.h slrnfeat.h jdmacros.h slrn.h misc.h \
ttymsg.h util.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/help.o help.c
$(OBJDIR)/interp.o: interp.c config.h slrnfeat.h jdmacros.h slrn.h group.h \
art.h misc.h ttymsg.h startup.h server.h nntpcodes.h menu.h \
interp.h util.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/interp.o interp.c
$(OBJDIR)/menu.o: menu.c config.h slrnfeat.h jdmacros.h slrn.h menu.h misc.h \
ttymsg.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/menu.o menu.c
$(OBJDIR)/mime.o: mime.c config.h slrnfeat.h jdmacros.h server.h nntpcodes.h \
slrn.h misc.h ttymsg.h group.h art.h util.h mime.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/mime.o mime.c
$(OBJDIR)/misc.o: misc.c config.h slrnfeat.h jdmacros.h misc.h ttymsg.h \
group.h slrn.h post.h server.h nntpcodes.h util.h chmap.h \
mime.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/misc.o misc.c
$(OBJDIR)/post.o: post.c config.h slrnfeat.h jdmacros.h slrn.h server.h \
nntpcodes.h misc.h ttymsg.h post.h group.h art.h uudecode.h \
util.h chmap.h mime.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/post.o post.c
$(OBJDIR)/score.o: score.c config.h slrnfeat.h jdmacros.h slrn.h group.h \
misc.h ttymsg.h server.h nntpcodes.h hash.h util.h art.h \
xover.h score.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/score.o score.c
$(OBJDIR)/server.o: server.c config.h slrnfeat.h jdmacros.h slrn.h server.h \
nntpcodes.h misc.h ttymsg.h util.h startup.h spool.c
$(CC) -c $(CFLAGS) -o $(OBJDIR)/server.o server.c
$(OBJDIR)/slrn.o: slrn.c config.h slrnfeat.h jdmacros.h server.h nntpcodes.h \
slrn.h group.h misc.h ttymsg.h startup.h art.h score.h \
util.h chmap.h interp.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/slrn.o slrn.c
$(OBJDIR)/sortdate.o: sortdate.c config.h slrnfeat.h slrn.h util.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/sortdate.o sortdate.c
$(OBJDIR)/startup.o: startup.c config.h slrnfeat.h jdmacros.h slrn.h group.h \
misc.h ttymsg.h art.h post.h startup.h score.h util.h \
uudecode.h mime.h interp.h server.h nntpcodes.h chmap.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/startup.o startup.c
$(OBJDIR)/ttymsg.o: ttymsg.c config.h ttymsg.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/ttymsg.o ttymsg.c
$(OBJDIR)/util.o: util.c config.h jdmacros.h util.h ttymsg.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/util.o util.c
$(OBJDIR)/version.o: version.c version.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/version.o version.c
$(OBJDIR)/uudecode.o: uudecode.c config.h slrnfeat.h uudecode.h util.h \
ttymsg.h jdmacros.h slrn.h misc.h
$(CC) -c $(CFLAGS) -o $(OBJDIR)/uudecode.o uudecode.c
$(OBJDIR)/uudecode1.o: uudecode.c config.h slrnfeat.h uudecode.h util.h \
ttymsg.h jdmacros.h slrn.h misc.h
$(CC) -c $(CFLAGS) -DSTANDALONE -o $(OBJDIR)/uudecode1.o uudecode.c
$(OBJDI